package com.zyp.resoponsibility;

public class TestResponsibility {

	
	public static void main(String[] args) {
		IHandler m1=new Manager();
		IHandler m2=new DepartmentManager();
		IHandler m3=new GeneralManager();
		
		m1.setHandler(m2);
		m2.setHandler(m3);
		
		m1.handleRequest(3);
		m1.handleRequest(5);
		m1.handleRequest(9);
		m1.handleRequest(22);
	}
	
}
